package com.bskj.common.enums;

public enum UserInvoiceStatusEnum {
	complaint(1,"申领中"),admissibility(2,"受理中"),complete(3,"领取完毕");
	private int key;
	private String value;
	private UserInvoiceStatusEnum(int key, String value) {
		this.key = key;
		this.value = value;
	}
	public int getKey() {
		return key;
	}
	public void setKey(int key) {
		this.key = key;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public static UserInvoiceStatusEnum get(int key) {
		for(UserInvoiceStatusEnum userInvoiceStatusEnum : UserInvoiceStatusEnum.values()) {
			if(userInvoiceStatusEnum.getKey() == key) {
				return userInvoiceStatusEnum;
			}
		}
		return null;
	}
}
